import { getAction, deleteAction, putAction, postAction, httpAction, postFormData } from '@/api/manage'
const gateway = '/api/gateway/jic-backend-mall'

const baseUrl = window._CONFIG['domianURL'] || '/jeecg-boot'

export const communityStatistics = (params) => getAction(gateway + `/mall/community/statistics`, params) // 管理后台-社区数据概览
export const commentQuery = (params) => postAction(gateway + `/mall/community/comment/query`, params) // 条件分页查询评论
export const auditQuery = (params) => postAction(gateway + `/mall/community/comment/audit/query`, params) // 条件分页查询评论-审核不通过
export const commentDisable = (params) => postAction(gateway + `/mall/community/comment/disable`, params) // 禁用评论
export const commentEnable = (params) => postAction(gateway + `/mall/community/comment/enable`, params) // 启用评论
export const commentAudit = (params) => postAction(gateway + `/mall/community/comment/audit`, params) // 审批评论
export const batchPass = (params) => postAction(gateway + `/mall/community/comment/audit/batch/pass`, params) // 批量审批评论
export const commentAdd = (params) => postAction(gateway + `/mall/community/comment/add`, params) // 添加评论
export const commentDelete = (params) => postAction(gateway + `/mall/community/comment/delete`, params) // 删除评论
export const informList = (params) => postAction(gateway + `/mall/community/content/inform/list`, params) // 举报列表
export const contentPage = (params) => postAction(gateway + `/mall/community/content/page`, params) // 内容列表
export const contentDetails = (params) => postFormData(gateway + `/mall/community/content/details`, params) // 内容详情
export const contentAddOrUpdate = (params) => postAction(gateway + `/mall/community/content/addOrUpdate`, params) // 新增编辑内容
export const contentDelete = (params) => postFormData(gateway + `/mall/community/content/delete`, params) // 内容删除
export const informIgnore = (params) => postAction(gateway + `/mall/community/content/inform/ignore`, params) // 举报忽略
export const contentAuditRecordsAdd = (params) => postAction(gateway + `/mall/community/content/auditRecordsAdd`, params) // 内容审核记录新增
export const contentAuditRecordsPage = (params) => postAction(gateway + `/mall/community/content/auditRecordsPage`, params) // 内容审核记录
export const contentCommentsPage = (params) => postAction(gateway + `/mall/community/content/commentsPage`, params) // 获取评论列表
export const contentConoper = (params) => postAction(gateway + `/mall/community/content/conoper`, params) // 获取2获赞 4转发 5不喜欢列表
export const topicPage = (params) => postAction(gateway + `/mall/community/topic/page`, params) // 话题列表
export const checkskc = (params) => postFormData(gateway + `/mall/community/checkskc`, params) // 关联商品skc
export const materialLook = (params) => getAction(`/api/gateway/jic-backend-operation/operate/collocation/look`, params) // 素材库列表
export const getLook = (params) => postAction(`/api/gateway/jic-backend-operation/operate/collocation/getLook`, params) // look详情
export const topicAddOrUpdate = (params) => postAction(gateway + `/mall/community/topic/addOrUpdate`, params) // 话题新增修改
export const querySpu = (params) => postFormData(gateway + `/mall/community/querySpu`, params) // 话题选择商品根据款号搜索
export const topicDetails = (params) => postFormData(gateway + `/mall/community/topic/details`, params) // 话题详情
export const topicDelAssGoods = (params) => postFormData(gateway + `/mall/community/topic/delAssGoods`, params) // 删除商品
export const topicDelReward = (params) => postFormData(gateway + `/mall/community/topic/delReward`, params) // 删除奖励
export const topicDelete = (params) => postFormData(gateway + `/mall/community/topic/delete`, params) // 删除话题
export const topicWinning = (params) => postFormData(gateway + `/mall/community/topic/winning`, params) // 中奖列表
export const contentPromote = (params) => getAction(gateway + `//mall/community/content/promote`, params) // 推广码
export const contentExport = baseUrl + gateway + `/mall/community/content/export` // 话题内容导出
export const winningExport = baseUrl + gateway + `/mall/community/winning/export` // 导出中奖名单
export const topicWinningUpdate = (params) => postAction(gateway + `/mall/community/topic/winningUpdate`, params) // 修改中奖信息
export const contentToAudit = (params) => postAction(gateway + `/mall/community/content/toAudit`, params) // 内容状态数量
export const topicNoStart = (params) => postAction(gateway + `/mall/community/topic/noStart`, params) // 话题状态数量
export const commentCount = (params) => getAction(gateway + `/mall/community/comment/count`, params) // 评论管理状态数量
export const informCount = (params) => getAction(gateway + `/mall/community/content/inform/count`, params) // 举报管理状态数量
export const province = (params) => getAction(gateway + `/mall/community/content/province`, params) // 省
export const city = (params) => getAction(gateway + `/mall/community/content/city`, params) // 市
export const district = (params) => getAction(gateway + `/mall/community/content/district`, params) // 区

export const contentConoperNUm = (params) => getAction(gateway + `/mall/community/content/conoperNUm`, params) // 评论页数量
export const contentOnline = (params) => postAction(gateway + `/mall/community/content/UpDown`, params) // 话题上线下线

export const contentInformDisable = (params) => postAction(gateway + `/mall/community/content/inform/disable`, params) // 话题禁用内容
export const contentCoupons = (params) => getAction(gateway + `/mall/community/content/coupons`, params) // 发放虚拟物品
export const contentInformation = (params) => postAction(gateway + `/mall/community/content/information`, params) // 查询身份下所有账号信息
export const contentPlacedTop = (params) => getAction(gateway + `/mall/community/content/placedTop`, params) // 内容置顶/取消置顶
export const contentVirtualValue = (params) => postAction(gateway + `/mall/community/content/virtualValue`, params) // 修改浏览 点赞虚拟值
export const isMatch = (params) => getAction(gateway + `/mall/community/content/isMatch`, params) // 

export const auditDetails = (params) => getAction(gateway + `/mall/community/content/auditDetails`, params) //内容审核记录-内容快照

